<?php
 @header("content-type:text/html;charset=utf-8");
 @header("Access-Control-Allow-Origin:*");
 $conn = mysql_connect("localhost:3306","root","root");
 mysql_select_db("1904");
 mysql_query("set character set utf8");
 mysql_query("set names utf8");
 $id=$_GET["id"];
 mysql_query("delete from userinfo where id=$id");
 $arr=array();
 if(mysql_affected_rows()>0){
   $arr["status"]=true;
   $arr["msg"]="删除成功";
 }
 else{
    $arr["status"]=false;
    $arr["msg"]="删除失败";   
 }
 echo json_encode($arr);
?>